

import 'package:flutter/material.dart';
import 'package:kasax/commons/common_entrys.dart';
import 'package:kasax_demos2/providers/page_sturct.dart';

import 'providers/page_providers.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // 列表类型
    var widget = PageProvider.getInstance().providePage(
        PageWrapper(title: "FlutterDemo", pageType: PageType.LIST, supportedType: SupportListPageType.MAIN));
    // 纯列表
    // var widget =
    //     PageProvider.getInstance().providePage(PageWrapper(title: "测试首页",pageWidget: Center()));
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: widget,
    );
  }
}
